package com.deductive.domain.sw;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.deductive.common.config.mybatis.PgJsonbTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 后送工具表
 * @TableName disposition_sw_hsgj
 */
@TableName(value ="disposition_sw_hsgj")
@Data
public class DispositionSwJt implements Serializable {
    /**
     * 租户号
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 型号
     */
    @TableField(value = "model_number")
    private String modelNumber;

    /**
     * 编制
     */
    @TableField(value = "authorized_strength")
    private String authorizedStrength;

    /**
     * 类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 其他数据
     */
    @ApiModelProperty(value = "其他数据(JSON格式)", example = "{}")
    @TableField(value = "other_data", typeHandler = PgJsonbTypeHandler.class)
    private JSONObject otherData;


    /**
     * 3D模型Id
     */
    @TableField(value = "model3d_id")
    private  Long model3dId;
    /**
     * 模型url路径
     */
    @ApiModelProperty(value = "模型名称")
    @TableField(exist = false)
    private String modelName;

    /**
     * 模型url路径
     */
    @ApiModelProperty(value = "模型url路径")
    @TableField(exist = false)
    private String modelUrl;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}